Eventually a cmake based build system will replace all these. Also, interference with `git grep` can not be tolerated.
The unused WriteLossless() was using libjpeg internals found in jpegint.h. This header is available with libjpeg8, but not shipped by most distros. Disable the relevant code - no functional changes.