squirrel: fix link failure

Fixes #29643.