edits to make gfs-update run on windows, improve performance, and eliminate nasty memory leaks