Mangle long and ulong correctly on 64-bit linux/osx