libgphoto2: add missing dep on gd

Fixes #21196.
Closes #21197.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>