add CMakeLists and include cstring for high version gcc