Also modify configure to ensure it's linking with ncurses and not termlib or older version of curses.