Windows fixes

This is a collection of issues that I found while runnning the rugged testsuite on windows.

I really don't like having to trigger `GC.start`, and I'd propose that we move to a resource management model more inline with how `File` and other `IO` work, but I'll open a separate PR for that.