added plg-config, brushed up configure.ac and Makefiles