[mach-o] add MachOLinkingContext::configure(type, arch, os)

It will configure resonable defaults for other settings in the
MachOLinkingContext object based on the parameters.

Patch by Joe Ranieri