Fixes for compatibility with BoringSSL.