Fixes compilation issues, SMES can again partially recharge.