add Lucene version check as a static assert