Fix statfs call (remove posix dependency)