fixed build on mac
Merge pull request #51 from smw/master

fixed build on mac