libwmf: depends on jpeg

Closes #28584.