adding missing declaration g_battery in liblight