Add math library flag to test makefile