Initially prepare CMakeLists.txt for cmake-ready build.