lsyncd: add/fix build dependencies on autoconf

Closes #24439.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>