Added -lm linker flag