Fix building with clang and c++ headers from gcc-4.9