Windows fixes

This commit fixes issue #2 (or tries to; I don't have a Windows box to
test on).