mjpegtools: depend on X11 if installed.

Closes #17222.