a better Solaris ncurses fix