Adjust for PackageKit depends/requires API changes

Use the new API, but use macros to fallback to the old one

https://bugzilla.gnome.org/show_bug.cgi?id=720909

Signed-off-by: Richard Hughes <richard@hughsie.com>