Apply patch 5: add a configure flag to switch on/off jpeg support. Patch by Daniel...