Fix buiding issue on Mac OS X
Merge pull request #3 from wkt/master

Fix buiding issue on Mac OS X