mod: refactory init-compile.el for smart compile