configure.ac: use ncursesw if it's there, but continue if only ncurses is found