Patch for building on OSX 10.9 Mavericks / CLANG