Jpeg version 6b mods made to suit the needs of LibZinc