Win32 compilation fixes for sgen.