Makes install functional and cleans up CMakeLists.txt.