Fix xattr issue on OS X.