Changes to building ncurses and libtool, now using gcc/g++

Pull request to merge build changes for ncurses and libtool. Now using gcc/g++ compiler