Migration to libmongoc-1.0 driver