fix curses compilation underncurses.
will have to devise some other hack to fix windows