edgar.c: use _XOPEN_SOURCE for extra compatibility