Change W32 console detection to look at the window, not stdout