Fix pkgconfig files and small cleanup of configure.ac