Fix permissions for mach.
Switch to using mach to build.
Various config updates.