[NetKVM] Turn on the code analysis as part of build. Fix some of the prefast warnings.