Fix compile error for iOS