Was following along and @nuu9323226's fix worked for me too, with a couple of minor modifications:
wget ftp://ftp.freedesktop.org/pub/mesa/older-versions/10.x/10.3.1/MesaLib-10.3.1.zip
unzip MesaLib-10.3.1.zip && cd Mesa-10.3.1/include
sudo cp -fr EGL /usr/include/
sudo cp -fr KHR /usr/include/
- The FTP URL has been moved
- The EGL and KHR folders are from the zip, being copied TO the /usr/include directory, so got rid of the ~ home symbol.