As stat sometimes fails on ubuntu, turn to use boost::filesystem to get
the file size
Merge branch 'master' of https://github.com/chainone/SubD