Disable warnings on linux when building libgit2