Remove some unused dependencies.
Use googletest as an CMake external project.