Remove unused Autoconf function checks from configure.ac.
Remove unnecessary includes.