Updated CMakeLists to have C++11 standard and some flags