Implement WinConsole

Tested on Windows 7 64 bit.