I think we may already have discussed this check previously, but I believe now that it should actually be done using the following code instead to avoid deprecation warnings when compiling with a newer glib (also, I was told that the deprecation happened already in 2.35):
```
#if !GLIB_CHECK_VERSION(2, 35, 0)
        g_type_init();
#endif
```