get rid of unused variables if ENABLE_LINKED_PKGS is not set