linux: need <sys/resource.h> for getrusage.