Update configure.ac and Makefile.am to support pkg-config.