Fix dependency issue in apidoc, depends on server as that is where ApiXmlDocWriter lives
Fixed Coverity Issues Reported
Fixed a simple coverity issue