fixed compilation issues for Mono