Only flush stderr in logmsg() on Windows.