Fix format string error in win32 logging, and