fixed Visual Studio compile issues