Merge pull request #3593 from mpg/fix-compat.sh-with-ubuntu-16.04-gnutls-2.16

[backport 2.16] Fix compat.sh with ubuntu 16.04 gnutls