build fix, add missing include stdint.h for type int64_t
fix, don't use non-portable %zu for printf
fix, portable printf long long

Some windows systems don't know %lld, and also %lld was possibly wrongly
used to print int64_t. Now we cast integers bigger than long to intmax_t.
Merge branch 'printf_fixes'

* printf_fixes:
  fix, portable printf long long
  fix, don't use non-portable %zu for printf
  build fix, add missing include stdint.h for type int64_t