CMakeLists.txt changed to export the correct cflags