I'd put a preprocessor check around:
```c
#if !GLIB_CHECK_VERSION(2,32,0)
g_thread_init(NULL);
#endif
```