Port to darwin

Using ld and otool we mirror the techniques with ELF for MACH-O.