Fix x64 builds for platforms that define UL as 32 bit.