add guards for arm targets that are conditional upon emission
compatability with Apple targets

note: this is imported from APSL, and altered to provide generic support
it builds for more than one platform now

also add copy header phases to install into target directory