Fix flex and curl compilation.