fix build for ios and iossim. Still not completelt working due to LLVM
including files not supported on iOS.