Added a better way of checking if libcurl is installed