Only use libc++ when we have it

Fixes #523 and #721

Checked  on  Arch Linux 3.12.5-1 with:
clang/clang++ installed.