groonga 4.0.8 OSX regression bug fix

add patches reported by https://github.com/groonga/groonga/issues/264