more msvc fixes. make dxViewer working.