Update CMakeLists.txt for gcc