cache library dependencies