Windows compatibility

Should close #16 for now, but will run some more tests and reopen if
necessary