Fix build on FreeBSD

Build on FreeBSD fails because XATTR_CREATE and XATTR_REPLACE are not
defined, so provide our own definition of those.
Merge pull request #32 from novel/fbsdfix

Fix build on FreeBSD