Buffer *stat calls.

I thought I had filed a tracking issue, but I guess not.  Anywho, this is a seriously gross patch, but such is life when sharing a toothbrush with libc.