fix, portable printf long long
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.

samanalysis/twstools,samanalysis/twstools,samanalysis/twstools