fix pf_gcd on mac