prune unused libraries