use AC_USE_SYSTEM_EXTENSIONS instead of defining XOPEN_SOURCE and GNU_SOURCE everywhere
make autoscan and autoheader happy