applied Windows (Visual Studio) compatibility patch