Make the c++11 flags for OSX build optional