Fix build issue. made kundera-core lucene dependency optional