macros: add G_GNUC_CHECK_VERSION() for compiler checks.