Update jpeg to version 9a.
Fixed local funcion names shadowing globals.

To many things to list :(

Signed-off-by: revelator <ralphengels@gmail.com>