Looks like Sourceforge recompressed "grid.jpg" with even more artifacts. Please find the original file in "grid-jpg.zip"
Sorry, ignore the "test_jpg_freeimage.mdl" file, looks like I cannot remove wrong attachments from my own ticket...
JPEG_ACCURATE results in artifacts on Windows, but not on Ubuntu