Fix 32-bit type used in JPEG lib