Move platform-dependent parts of Linux battery meter.