fcgi implementation in C/C++