Make it compile with the libcurl that ships with ubuntu 12.04