Update configure to properly detect libressl without breaking openssl compatiblity.