Remove redundant library dependencies.