Fix build on Windows with MS compiler