qt5: use non-system jpeg, png.

Fixes #21255.