fix linking of mongoclient #869