Add support for building on iOS using clang while still allowing iphone-gcc to be used.

I apologize first off if this is shown as a new issue on github (probably will).

Anyways, this seems suitable enough to be sent in as a pull request as it doesn't seem to cause problems with either clang or iphone-gcc while allowing switching between both (unless SDK 4.0+ is installed, as gcc doesn't support it.)