autotools: Detect GTK version to use automatically