Follow the libc++ compile way recommended by LLVM docs.