Revert "remove linking"

This reverts commit 1aa1d4cee949a5919dc731fe89c8d70da005fc87.