support both PackageKit 0.7.x and 0.8.x