add '-lm' to linker flags