Improve process spawn helper to support passing an argv

Only implemented on UNIX for now.
Add Mac and iOS cross-arch injection test