Turns out, it uses an API that is not provided by libjpeg. Add compatibility code from v4l-utils. Signed-off-by: Rosen Penev <rosenp@gmail.com>