Update to be mono compatible.

The targets exist on mono although a slightly different name, also added conditionals to be specific on which was loaded.