Fixed equality operator comparison with Type

Using == on a Type is not supported in Mono at the current time. Changed
to something that is supported and expresses the initial intent.
Fixed another equality comparison with Type

The == operator isn't supported in Mono, used workaround.
Added MonoRuntime property

The MonoRuntime property is now checked instead of relying on an
external compiler define (MONO).