updated link script to handle submodule updates