update dependencies in library makefiles for LAMMPS