Fixed c++11 detection for osx.