glib-compat.h: Add actual assertions

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>