fix build on OS X
Merge pull request #2 from piskvorky/master

fix build on OS X