required changes to make module work with solr 4.5.1 on ubuntu 12.04; makes cores optional