fix for #3219  build errors on Yosemite version of clang

over-the-shoulder by @danielmewes