fix msvc errors