Fix compilation error for newer solr versions