C++-numeric: Fix up some 64-bit and GCC problems.

Still won't compile on gcc-4.7 (f18) because of poor C++11 compliance wrt UINT64_MAX, UINT64_C, and PRIu_64 macros.