[package] revert r18554, until we fix curl compilation on all platforms