Updated these files to support newer versions of Boost libraries

These two files were the only sources with Boost.filesystem related issue. They have been updated. They will remain backward-compatible down to version 1.46.0 but not further back. Since a recent commit to OpenCog has set minimum supported Boost version to 1.46.0, we are good!