use G_BEGIN/END_DECLS
fixes compile