B-0 modifications made to allow compilation in Visual Studio