Fix git version compilation.