Add headers export script

For use as subproject / lib instead of framework
Fix header export
Switch back to old style loadTestsFromTarget:
'active arch only' = NO for debug

Preventing socialize cmdline build from running
Headers export copy only if needed
Update export script

was failing sporadically