Support FreeBSD sed in configure
Pass -stdlib=libstdc++ where appropriate

Update llvm to get -stdlib=libstdc++ there too.

Fixes 6849.