Change the order of setting default configuration and customized configuration, and also change the order of setting defines and undefines.