Fix a compiler error in Visual C++