Changed cmake modules and CMakeLists.txt.