Build foo with -lm, for math-using versions.