Fixed some static analysis error of nmake.