[qt-heif-image-plugin] Improve compatibility with new CMake macro