Fixes compiler warning on iOS.