Adds write_global_string and write_func_string functions to compile.