Fixed some compilation issues when compiling without Curl.
zxidcgi: Avoid NULL deref.