fixed compile error on mac
Merge pull request #11 from jrahm/master

fixed compile error on mac