move Linux style xattr to common code as supported in NetBSD and OSX
add osx, netbsd xattr constants
skip test if NOTSUP