Fix authentication issue on MongoDB 2.4