It seems the problem was known (at least by the upower developers) for 9 months, but there was no comment on the thermald github issue list.
I have reported this upstream:
https://github.com/intel/thermal_daemon/issues/340
- bug#54061: thermald-2.4.7 build fail following upower upd... Paul Jewell
- bug#54061: thermald-2.4.7 build fail following upowe... Maxime Devos
- bug#54061: thermald-2.4.7 build fail following u... Nicolas Goaziou
- bug#54061: thermald-2.4.7 build fail following u... Paul Jewell
- bug#54061: thermald-2.4.7 build fail following u... Ludovic Courtès
- bug#54061: thermald-2.4.7 build fail followi... Paul Jewell
- bug#54061: thermald-2.4.7 build fail following upowe... Paul Jewell