curl: libressl integration

Commit batch number 2.