Compile libgit2 with -fPIC