visual studio build fixes