Fix various SanityTests build issues.

SanityTests should now build and run without errors on
Xamarin.Android 4.20.