MONGOOSE_NO_CGI needs special handling.

MONGOOSE_NO_CGI is implied by both NS_DISABLE_SOCKETPAIR and
MONGOOSE_NO_FILESYSTEM. Thus, so as not to get complaints about
the same define being defined twice, some extra checks are needed.
Merge pull request #436 from jhnwkmn/no-cgi

MONGOOSE_NO_CGI needs special handling.