fix #include "config.h" for all source files
remove useless #define _GNU_SOURCE from not using asprintf sources
fix some autoscan warnings