it fails to compile when it meets functions such as leaf().
the return value is not string type anymore.
I've come up with a simple fix and change the functions according to this page:
http://www.boost.org/doc/libs/1_45_0/libs/filesystem/v3/doc/deprecated.html