Fixed issue with mismatches in libjpeg versions if the jpeg library is built from source