Fix debug output on Win32

Diagnostic output to stderr is completely broken for the Windows client now (this was a side effect of 7701c9d9). This update fixes the issue.