-lm library added to makefile