Newer glibc >= 2.28 provides a wrapper (and struct definitions) for statx. So, only include linux/stat.h on older glibc. This fixes a build failure on (at least) fedora 29 with glibc 2.28