Fix to dirty work-around for Mono.