add #include <stdlib.h> to xxx_cfg.cpp