Win32 terminal rendering fixes