- don't declare static stuff (that's only needed in one file) as extern in a header file. - Use system jpeg again.