Build Krita with libheif in all supported platforms
libheif requires the following changes:
- Make all libraries use the common HEIF prefix
- Build libheif examples, so that we can test if the library is properly built
- Add nasm for Windows x86, drop yasm
- Add libpng and libjpeg-turbo as dependencies to libheif
- Isolate macOS build from /usr/local libraries
- (A reason why libheif doesn't work well under macOS.)
- Fix conditional SSE4.1 support in libde265
- Skip 10-bit and 12-bit builds on Windows x86