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

I had to add some flags to get things building properly on 10.8 with clang