refactored code to omit F# 3.1 features (this will allow compilation in Xamarin Studio)