Adding check for MongoDB server version

[related mongoid/mongoid#2915]
[related mongoid/mongoid##2906]