added code of official libwebp 0.4.2

- from: https://chromium.googlesource.com/webm/libwebp/