Revert "Revert "Sync curl build from sources logic.""

This reverts commit bf201d75ff002dd0cd2066a423b53c2132690bea.
Do not touch cURL on Ubuntu.