Update to 1.3.1.
This should unbreak the build with libressl and pre-1.1.1 versions of OpenSSL; most importantly, this should build on FreeBSD 11 again.