* fix smart-linking for internal (static) procedures.