Added a version check for libjpeg.