c++ cgi wrapper