Autotools: honor --with-geany-libdir when checking whether to enable GTK3
GeanyGenDoc: fix a memory leak when saving the configuration