webp: add extra optional dependencies

Closes #28619.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>