build-goo: add m4/ directory

I don't know, it seems like not having one can be fatal on some systems.
autogen: Match more closely what gnome-autogen.sh does

This was failing in Continuous after
See https://bugzilla.gnome.org/show_bug.cgi?id=711818
and rather than debug it I'm just going to change it to do
what gnome-autogen.sh does, which works.