Added terminal width detection for Windows.
Also define a OS_WINDOWS if WIN32/WIN64/etc. is defined.