readline: allow ncurses dep versions >=5.9