Updated to work with new libmongoc and libbson.