CMake: Remove shared libraries for all deps.