Use RELATIVE_LINK2 instead of $(LINK2 #anchor, Description)

This should fix some broken relative links for non-HTML doc generation by avoiding hardcoding of `#` for anchors. See also: discussion from pull #290.

Note: this PR does not fix cross-file links e.g. `foo.html#anchorName`.