Fix compile errors with mongo-c-driver v0.7.1

Ubuntu 12.04, x86_64