Add missing G_BEGIN_DECLS and G_END_DECLS