Merge pull request #4251 from Keruspe/master

Fix build with libressl