Improving the CMakeLists.txt portability.