Try to remove shared libraries for all deps.