include config.h before system headers
Makes sure any defines needed to expose functions like reallocarray()
are present on platforms that need them (_GNU_SOURCE
, _OPENBSD_SOURCE
,
__EXTENSIONS__
, etc.)
Problem reported and fix tested by @tklausner on NetBSD.