Compile fix for msvc