update to libmdb upstream