Issue #85: Fix sys.stdout/sys.stderr for gui application on Windows.