Fix compilation for newer versions of libcxx.