Patched CMakeLists to find and use C99 compiler.