What warning? I don't follow.
Compiling against system installed boost rather than the version shipped with mongodb ensures being able to link against the mongodb library, when the two boost versions differ.