getrusage() needs sys/resource.h