fix gf on MacOS X