Changes to support Mono.