few minor adjustments with build system.
Moving $CFLAGS to configure.ac
Improve debug system using envs by modules. e.g: SOFTGRED_DEBUG_PROVISION, SOFTGRED_DEBUG_PAYLOAD