more windows build fixes

Change-Id: Iab10a94231df61bdbeac51cb36a8548286dd8f17
add rusage to darwin