codec: jpeg encoder: fix build for older libjpeg