correcting use of -lm for strict mac