[pathfinding] Fixed compile errors in pathfinding.