[kodi-peripheral-joystick] Improve compatibility with new CMake macro