Supports Windows by reimplementing a minimal getrusage.