[xbuild] Fix bug #671700, resource naming in presence of "Link".