Fixes to get everything to build in Xamarin Studio