Fix build with kqueue option and automake-1.13.
Fix build with automake-1.13.
Fixes for automake-1.13.