remove and fix external curl dependencies