Fix for #619. Adds conditional compliation / conditional runtime logic for mono.
Merge pull request #622 from adamralph/619

Fix for #619. Adds conditional compliation / conditional runtime logic f...