[sgen] Fix a regression caused by 07fc727b8698a100aeb214ae3f7eb1cc3f5bab20. Fixes the windows build.