added ldflag to link with math library