gts: add netpbm dep, fix build

Fixes #22683.