OS X build err support
Merge pull request #319 from abe00makoto/master

OS X build err support