backwards compatibility for boost::filesystem v2

@faiz is running a consensus check to make sure that this doesn't affect anything that it shouldnt

This should add support for Boost::filesystem v2 which is boost v1.44 or less