Fix build for OS X.
Merge pull request #1 from saitoha/osx-build

Fix build for OS X.