libgpg-error: Add fixes to build under Windows