add support for win32 console