write apache module in c++