Fixed compiling under the emulator on iOS