templates: Build with profiler output support