fix building on NetBSD 6 and use configure to check for non-standard fstype string in statvfs.