Ok, I just found the lines where to native window error messages are used. I'm trying to create a patch for the libgit2 guys.