Finally unbreak logging to stdout/err on Windows. Helps remembering that Windows distinguishes between console and window applications.