fixed position of -lm parameter in compilation