Makefile fix to get math libs included in the linking process