C++ wrapper for mongoose