Build libgit2 with GIT_THREADS defined

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>