Throw an exception if curl is not installed.