Patch for recent versions of glibc which always assume int64_t support.
Fixes #8731.