perfect: Fix perfect hash generation on POSIX x86-64 platforms.

perfect used %lx and %ld to format 32-bit fields.  This caused
erroneous generation of engine/src/hashedstrings.cpp when compiling on
64-bit platforms using a POSIX-compliant libc.