polkit: replace deprecated functions with their subtitues

Signed-off-by: Jakub Filak <jfilak@redhat.com>