Added optimization flags to CMakeLists.txt for C compiler