Module and a script for converting Perl XS code into C code