Detect mono runtime, partial fix to #28