Fix logging of 64 bit values on Windows