Revert "libcurl compile moved up"

This reverts commit be5fcb6e4ff108f9fb8e5bef21bc993ef445fd19.