Fixed boost::filesystem helpers in Boost <= 1.48.