Fixed compilation on MacOSX
Merge pull request #1 from vbmithr/master

Fix compilation on MacOSX