Added -lm to flags