trying to port statvfs call to BSD