fix libtiff build against libjpeg