Link math.h and reformat src Makefile.am