Removed curl dependency by using cmake internal curl