Fix build with clang/libc++.
From joerg.