Automatically detect Lucene versions and provide the right implementation
Resolve linking issues with clone() implementation