add c++11 flat to cmake