Support pre- and post-mongo driver 1.8.0.