Fix C++11 build with boost::filesystem enabled