update to support libc++ and c++11