As suggested by
Anonymous Monk you should modify the declarations. Substitute
CV by
struct cv in lines 1552, 1554 and 1557.
But (as remarked by
Anonymous Monk) another problem will show up then with the different prototypes of
void boot_pwiz_swigbindings(PerlInterpreter*, int*) in line 1531 and
SWIGEXPORT void boot_pwiz_swigbindings (pTHXo_ struct cv* cv) from line 1554.
The type of the second parameter
int * is incompatible to
struct cv*. (The number of parameters seems to be right). It looks like SWIG did not generate this correctly with the supplied template. Maybe the template needs to be updated (line 1531 looks wrong).
Anyhow, without access to the complete template and generated file it is quite difficult to guess how this could be rectified.