MongoDB compilation fixed