modules: Fix build with recent glib

Except on win32, where this annoyance originates.

Related to acd9c126.
16 jobs for matthiasc/for-main in 24 minutes and 58 seconds (queued for 4 seconds)