Fix emblem compilation and template root.