added c++11 flag so that cmake makes using c++11

I was having trouble with the makefile generated by cmake (in osx) and I realized cmake was not using C++11