Fix build failure with debian kfreebsd and hurd

This should avoid the 
"../core/liblucene++.so.3.0.6: undefined reference to `Lucene::Constants::OS_NAME'" error, and fix issue #75