Use PKG_CHECK_MODULES instead of AM_PATH_GTK_3_0 and remove needless checks.