Removing unneeded libraries at link time.