update xtemplate compile tool for #505