build: allow to customize gitdir and typelibdir