This fixes a few (fatal in gcc 11) warnings. See https://gitlab.gnome.org/GNOME/glib/-/issues/600
Don't include anything in the templates specific to the file to be built, like #ifdef guards in headers or #include in sources.