work on libjpeg, libjasper and libturbojpeg