autotools: removed libresov check for freebsd.
autotools: cleaned up configure.ac and Makefile.am
autotools: check for expat.h if pkg-config failed

Some distros provides libexpat without expat.pc. So PKG_CHECK_MODULES
fails even if libexpat is installed. To fix this AC_CHECK_HEADER added
back.