Fix for perl api build on some 32-bit systems