Fix dependencies on libgit2

Signed-off-by: Tibor Vass <teabee89@gmail.com>