libgit2 with cmake and set static lib and Mac OS X environment