The correct max value for size_t variables is SIZE_MAX not UINT64_MAX.  Removes lots of warnings when building on 32 bit hosts.