Correct use of PRId64
Turn on compiler warnings
Fix compiler warnings