Yeh you would need to include all the header files mentioned in BatteryTimeRemaining.c. So all of these files...
#include <syslog.h>
#include <unistd.h>
#include <stdlib.h>
#include <notify.h>
#include <mach/mach.h>
#include <mach/mach_port.h>
#include <servers/bootstrap.h>
#include <asl.h>
#include "powermanagementServer.h" // mig generated
#include "BatteryTimeRemaining.h"
#include "SetActive.h"
#include "PrivateLib.h"
All the triangle bracket includes should be system include files and so should be on your system already. The quoted include files though are likely part of that project you are retrieving BatteryTimeRemaining.c from. You would need to copy them out of that project to your own project.
Likely its easier to copy out the functions you want and paste them into your own code base. No doubt you'll have some dependency issues but its probably easier to get one or two functions building on your system then the whole file. It's pretty long.
What function did you want to use exactly out of BatteryTimeRemaining.c?