We need to build with -D_GNU_SOURCE for prototypes of fcloseall and strcasestr. Upstream, AC_USE_SYSTEM_EXTENSIONS (which sets _GNU_SOURCE) should probably be added to configure.ac, but I do not want to start running autoconf during the build, so I'm just adding the -D_GNU_SOURCE flag.