SERVER-5561 exposes BOOST_FILESYSTEM_VERSION macro to userspace

If the macro BOOST_FILESYSTEM_VERSION is redefined in the C++ client it makes code using bfs v3 fail.

This patch migrates to boost::filesystem v3.  by updating the calls to the deprecated API.

Please have a look and apply if positive.