Fixed SGen build for MSVC