Fix warnings

Silence "return makes integer from pointer without a cast" and
"'return' with a value, in function returning void" warnings.
Autodetect mecab

Change configure.ac to autodetect mecab unless --with-mecab / --without-mecab
is specified.