Makefile.am: use CURSES_LIBS instead of CURSES_LIB