multipath(d)/Makefile: add explicit dependency on libraries