Replace compatibility functions by gnulib functions
Fix message in configure.ac for when GnuTLS has not been found