Fix loading of MACH0 object files and fix build