Fix Makefile.am for ncurses