Compile fix for MSVC