Fixes to compile libjpeg_turbo on emscripten