Adapt to MongoDB 2.4 changes
Merge pull request #6 from Marsup/mongo-2.4

Adapt to MongoDB 2.4 changes