fix #3 again, do not wrap linux/stat.h in ifdef KERNEL