Fix OpenGL compilation for iOS simulator