Added -lm to C compiler.