Fix -lm issue with Makefile