move write_graphite.c to ref