Windows support

These are a few changes to better support Windows.  We may want to add a warning to the documentation that we don't really want to support Windows, but are just including it as is.