add --enable-static to libgpg-error