Fixing compiler errors and warnings on LINUX. Possibly resolving long standing issue with LINUX and long long int and long int definitions being applied to uint64_t and int64_t. Borrowed some code from Qt to do the resolution.
Fixing compiler warnings about inconsistent formats for fprintf() calls