Perl tests may not pass first time
lookup lemmatizer by pkg-config' macro

Also, make compatible with old automake (found in RHEL5)