Removes unused libraries.