[JPEG decoder] Fix huffman table building. Warn about progressive JPEG not supported.
Cosmetic changes.