Stop linking unnecessary dependencies