use libffi for iOS adjustors; fixes #7718

Based on a patch from Stephen Blackheath.