add -lm to makefile