Update link module with some extra patches.