Initial mods to make the Glorious New IO Library (tm) work on mingw. Not everything works, but is compilable, and off to a good start.