fix curl server build