automatically set c++11 flags