lib/tls: Fix behaviour of --disable-gnutls and remove link to gcrypt