Fixed compile error on iOS.