Use statvfs on NetBSD.

One field name in struct statvfs is different than one Solaris; adapt.
Fixes build on NetBSD, since statfs support was removed.
can you `s/unsigned char/uint8_t/` to keep the line length down?