glib: work around more strict behaviour of gcc 4.8