C++ classes for CGI application