Revert "Xamarin compatibility"

This reverts commit daedcb59ef25fa9ad31df2b3b66d53aecce41b7e.