added cmakelists and fixed a compilation error