Detect console with on Windows

Windows, too, has an API for determining the actual console width.

Don't ask me about the -2. I did the patch a couple of month back and remember this was required for whatever reason (instead of just -1).