Updates for newer MongoDB PHP driver.