Is that expected behavior? Because it looks a little wrong.
how about installing a libcurl developer package? libcurl4-dev, libcurl3-dev or libcurl-develop depending on your Linux distribution.
The thing about error messages is: they tell you what's wrong.
