fixed Visual Studio compilation and compilation in general / small r10788_device initialization cleanup (nw)