polkit: replace deprecated functions with their subtitues

Closes #708

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