Fix build August 2013

Updated to work with libgit2 development branch as of August 26 2013