Fix Visual Studio compile