Update code to cope with API differences in Xamarin.iOS.dll.