cleanup libjpeg version checking code bit more