[kodi-platform] Improve compatibility with new CMake macro