fix logging on win32