Standalone versions of LUCENE_5205 and other patches