Fix compile issue on macosx
Merge pull request #10 from mephux/master

Fix compile issue on MacOSX