avoid name clash with libjpeg - added missing externs