Fix compiler error in Visual Studio