Rewrite CMakeLists.txt to use C11 standard for now

Fix compile with C11 standard

Will be used until C++ transition