Fix to use newer libjpeg API.

Newer API uses jMemSrc instead of jpeg_mem_src. We check if the version
is  >=80 or or  MEM_SRCDST_SUPPORTED is defined and use the newer API
where appropriate.

Change-Id: I89d1129c656539a3e748fbbebae5130aece6e4c1
Merge topic '0013870-fix-jpeg-mem-src-conflict' into master

1d79220a Fix to use newer libjpeg API.