Removing unused optional CMake dependencies