Mongodb Build Fixes

Updates the mongodb build to work the the boost change and uses the system yamlcpp. Other generic cleanups are included.

Depends on #4085