MFC the second half of r246784:

- Fix libmd dependency.  It is needed in the bootstrap library list because
  usr.bin/xinstall depends on it.