Make sure the test target builds dependencies.

The test target can only be run after the tests and the libstatgrab
library have been built, otherwise it reports that there's nothing
to test:

Result: NOTESTS

This change only builds the required dependencies, so it won't build
the examples or manpages.
Break the ChangeLog generation up.

This used to be split over multiple lines when it was in the Makefile,
but I concatenated it by mistake when bringing it across to here.
Add missing brackets in AC_INIT.

This was suggested by autoupdate.