battery_statefs: fix a few build warnings