Fixed mongoose compilation with C++ compiler