update to work with Mongo 2.6

see http://docs.mongodb.org/master/release-notes/2.6-compatibility/#maxdistance-changes