Curses bug on Cygwin