libgpg-error tests pass

Had to remove usage of __attribute__ ((__constructor__)).
See https://github.com/kripken/emscripten/issues/1155