Add support for C++11 on Mac