Added support for specifying that Tk should be linked dynamically