64-bit: more pointer precision loss fixes.

Compilation now succeeds on x64 Arch Linux.
Merge pull request #310 from archSeer/master

64-bit pointer precision loss fix