Fix build on Windows using MSVC