Fix build for Mono