Restructured the build system; updated newton_install_all.pl