Fix gcc, ncurses and JDK compil/download.