generate config.h and version.c properly