Add missing sys/stat.h include to attr_dialog_nix
Merge branch 'fix-freebsd-compilation'

Fix unexpectedly broken compilation on FreeBSD.

Thanks to Daniel Dettlaff (a.k.a. dmilith).