Link tests against ncurses