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.
Merge pull request #90 from dagolden/topic/fix-for-recent-libbson

Fix types for latest libbson