Made it compile for iOS