Fix compilation errors due to ambiguous type references.

When building with $(TargetFrameworkVersion) set for Android v4.2.