Little fixes for ctrtool

When compiling ctrtool on Windows with MinGW32, there is a problem with the "ll" format specifier.
This fix is platform independed.