Various attempts at boost::filesystem bug workaround--WIP