Fix compile with newer versions of PackageKit