modifying to run on Xamarin Studio / MacOS