check for a libssl function we actually use

(the previous one was only available in newer OpenSSL versions)
make configure.ac work with older autoconf/automake versions

CentOS 6.x still comes with versions releaser half a decade ago :(