You need to install the following lib for building:
sudo apt-get update sudo apt-get install libwebp-dev