Corrected gridtk to work on macos.