Fix console output for Windows.