Clean up unused variables for MinGW
Fix use of %llx format specifier with MinGW

Apparently msvcrt doesn't have %llx, but if that's the case, how did
this not raise warnings back when Daniel Thaler used MSVC?