Updated to remove duplicate library references when linking in Tk