Properly initialize XS loading in Perl 5