Fix integration test build
Fix bugs in list generation on Windows