Fix compilation error on iOS.