core: fix compilation error when gnutls is not found