added linking of ncurses