Adjust for libjpeg-turbo v1.1.1

Modified it to make it compatible with v1.1.1 on old releases.