Msvc compile fix