Use G_BEGIN_DECLS instead of __BEGIN_DECLS.

__BEGIN_DECLS isn't available in mingw-w64.

This commit licensed as MIT/X11.