Fix for Mac in order to use C++11