Make al_make_temp_file allocate temporary buffer to match the template.