BCertificate: fix parsing of date and name.
Add more features in BCertificate class

* Make it possible to extract more useful data from the certificate
* Also get the OpenSSL error message when a certificate can't be
validated. Send it to the verification failure callback so it can be
shown to the user.
BHttpRequest: propagate SSL errors to listener

This way it's possible to handle them in applications.
Add test for getaddrinfo on empty host.

* This should fail immediately, but it timeouts after 22 seconds when
the network interfaces are not configured properly.
Network preferences: Set the "auto configuration" flag.

Fixes #11416.
SecureSocket: fix build without SSL.