Compatibility with php5.5 and MongoClient 1.5.2