[Bug 8666] Fix build with LibreSSL