Better handling of shared linking and TCL_PACKAGE_PATH