fixed binary stdin, stdout on Win32