Fix broken, duplicate, and otherwise faulty links.