thermal plugin: mark some variables as static