Added optional build_deps for templates and stuff.