Fixed issue with linking libm in makefile.