cleanup of makefiles and initial commit for build.pl setup