sundown fix for MSVC