Don't define _XOPEN_SOURCE twice; assume fchown, snprintf.