Fix types for latest libbson

libbson 0.5.0 changed some types.  We need to figure out how we document
the necessary version of libbson, but this commit at least gets it
building again.