autogen: add function which installs dependencies (works on Fedora)

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