Windows compatibility

Full generation now works properly on Windows.