use libc++ for non-c++11 branches on mac os x