boostjpを参考に https://sites.google.com/site/boostjp/tips/filesystem
g++のオプションに以下をつける
-lboost_filesystem-mt