Mono compatibility fixes.