Added CXXFLAGS ncurses, pass env flags to libtool