C++ version, fixed apache errors