Fix pack dependencies in makefiles