Use all the link line from ncurses pkg-config. Otherwise it would fail at link time if ncurses has a stand alone tinfo library.