php: make curl wrappers optional

cURL wrappers are experimental and break any application/library
that rely on $http_response_header