Add ability to compile with clang without libc++.

This goes with https://github.com/cpp-netlib/cpp-netlib/pull/219.