Small ncurses bug fixes.