Updated to work under Xamarin Studio (MD 4.0)