added -lm switch to makefile to fix odd linker error