on win32 flush every log output afterwards