Fix curses console on Windows