fixed some minor warnings found by xamarin studio