Added battery plugin support for OS X