Add virtual destructor to NLTemplateLoader