Reworking the logic to use reflection to invoke the profile. This removes any conditional compilation
Merge pull request #682 from glennblock/MonoFix

Reworking the logic to use reflection to invoke the profile / no conditional compilation