The update of boost 1.72.0 deprecated the method level() of the recursive_directory_iterator.
See: https://www.boost.org/doc/libs/1_72_0/libs/filesystem/doc/release_history.html
This commit fixes this by replacing the member with the standard counterpart.