support build on osx 10.9
Merge pull request #5 from wangzw/master

Support build on macos 10.9