Fix libgpg-error build with latest emscripten.
Fix libgcrypt build for latest version.