Import jpeg and libwebp from upstream
Update for newer cwebp version