Support cross-compiling for iOS (armv7)

This and/or the above helper need comments as to why they're using `int` instead of `()`