taking ncurses lib from autoconf