various changes to the autotools code, will be committing some gtk3 specific stuff soon.

Signed-off-by: Canadian Bacon