Fix build on Mono.