Add compatibility with libjpeg version 9.