add basic Mach-O read function