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

Fix compilation on OSX