Rustdoc/linkage fixes

Commits have all the fun details.