Remove remaining nolink usages.(fixes #12810)

see #12810