[Tutorial] - Build Kodi

Been using Raspbian for 4 years, pretty confident. Recently installed MATE on a Pi3 and loving it. Followed your tutorial, however I get errors when I try making Kodi. I have installe d OpenGL drivers as instructed. I suspect it may have been as I did some fiddling a month ago to do some DVD Ripping with the Pi. The error log is Here,

any suggestions greatly appreciated.