Fix for iOS build errors