LibreSSL compatibility fix

Test compiled on OpenBSD 5.6 current snapshot.

`./configure --disable-all --enable-debug --with-openssl=/usr`

```
$ sapi/cli/php -i | grep -A 3 OpenSSL
OpenSSL support => enabled
OpenSSL Library Version => LibreSSL 2.0
OpenSSL Header Version => LibreSSL 2.0
```

Test results

```
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #55646: textual input in openssl_csr_new() is not expected in UTF-8 [ext/openssl/tests/bug55646.phpt]
Bug #65729: CN_match gives false positive when wildcard is used [ext/openssl/tests/bug65729.phpt]
```

First failure is platform specific (OpenBSD /etc/ssl/openssl.cnf does not contain a `v3_ca` section
Second failure is kind of XFAIL lately

Can probably go into current 5.x branches too.