fixed the build (somewhat, still need to edit buld.properties.sample), added the new ideas from Frank Zammetti (Bugzilla: #33676) and fixed the existing code so it actually compiles.