Move dependencies to lib.