Fix for compiling cherry picked changes against Mono Framework 2.10.11.