Support a 32 bit Perl

Hi,

The patch below add compatibility with a 32 bit Perl.

Best regards,
Dave Lambley