set env flags for libgit2