Compatibility with libc++

Context

I want to use libc++ with clang, but currently build fails with libc++.

Task

Fix compatibility with libc++.

Note