Fix compilation on OSX
Merge pull request #1 from samoht/patch-1

Fix compilation on OSX