Fixed to build correctly against tinfo not ncurses