replace libraries with min versions