Remove duplicate libraries.