fix ncurses library check