Set cmake flags to enable C++11 automatically