Fixed an issue with variable declaration in Visual Studio-based builds.