boost::filesystem v3.
fix linking test programs.