Added support for cross-compiling to x86 Linux/Android.
Fixed TLS detection to check for TARGET_MACH instead of __APPLE__.

In the case of cross-compiling to x86 Linux from OSX we'd hit compilation issues here.