fixed curl compiler error