add webp support (Ingar code)
First commit is just an attempt to avoid a pyramid of if. I can submit an separate MR for this.
Second commit is Ingar's code rebased, implementing WebP support in both netradiant and q3map2.
Third commit is what cmake needs to build Ingar's code.