Make local function static in jpeg_load.c, add missing header file in read_image.c