Fixed OSX build failure.
Merge pull request #51 from Fraser999/MAID-325_osx_bugfix

MAID-325: Fixed OSX build failure.