Adding conditional compilation around SetProfile method
Merge pull request #681 from glennblock/MonoFix

Adding conditional compilation around SetProfile method