Fix OpenSSL build
Merge pull request #753 from pyhalov/security-fixes

Fix OpenSSL build