gras: make ptree usage optional on old boosts