Support cross-compiling for iOS (armv7)

This one works, i.e. it seems metadata is always written but sometimes isn't read.