graphics/agg: fix build
MFC: 2024Q4
(cherry picked from commit 186a4e5fc407c29afb12703c8dd7b6ed9dab6b59)