Use G_BEGIN_DECLS instead of __BEGIN_DECLS.

__BEGIN_DECLS isn't available in mingw-w64.

This commit licensed as MIT/X11.
Merge pull request #1263 from madewokherd/begindecls

Use G_BEGIN_DECLS instead of __BEGIN_DECLS.