remove library, add as dependency