Fixup how linking is checked.