add gcd support on linux