Added conditional cmake macro for -std=c++11