Added license information
Turn on cfg_*?() in many cases, added cfg_AllInOneSourcesOff,
ordered names of cfg_* functions.