fix build issue with clang

pull request for https://github.com/Homebrew/homebrew/issues/31398 
Has this been submitted upstream? If not please do so. Regardless please link to the upstream submission. What versions of OSX/clang?