restore build.tmpl page
fix windows build error