Compile fix for iOS/Mac