Corrects the generated link to libraries