Do runtime checks for the GLib version, instead of compiling out tests. This avoids compiler warnings.