Support cross-compiling for iOS (armv7)

Can you please add some more comments as to what this is all about? Referencing a specific slot for pthreads isn't as helpful as it could be to future readers.