MongoDB: Be compatible with the legacy and compat26 branches of mongo-cxx-driver.