Windows compatibility

This is related to #10. Tested on Windows 7 in vbox.