using c++11 and fixing libc++ linking for clang