Make readline actually compile, and make ncurses use existing terminfo data (if available).
Readline support is now compiled with the ncurses backend.