moved two constants from cgi source to CMakeLists.txt

We should probably look for more places where this kind of fix is needed. And define constants (specially for the protocol) in CMake.