Added x86 jpeg library with multithreading suppport, corrected jpeg encoding,