[WIP] CMake: Try to remove shared libraries for all deps.

Follow-up from #1642.

Shared libraries for the new dependencies (libtickit etc) are not removed after building the dependencies (unlike msgpack's shared libraries). I tried to adapt the msgpack install script, but it didn't really work out yet.. I think `execute_process` doesn't like the way I pass the arguments.