* configure.in: Check for curses, terminfo and termlib libraries