Fix CMake files on centos 6