Massively simplify build process and fix build issues