Fix dependencies on libgit2

Signed-off-by: Tibor Vass <teabee89@gmail.com>
gofmt + syntax fixes
Fixes to get it building