check for Mono at runtime