This commit also fixes an issue where pkgconfig was only added as a dependency when gtk support was enabled. This made ./configure unable to find other libraries (libtiff, libxml2, gnutls, and others).