Fix a build error on OS X

GitHub: fix #254

Reported by Hiroshi Hatake. Thanks!!!