FL-659: add support for building with ncurses[tinfo} enabled