fix for iOS build