It turns out setenv LD_LIBRARY_PATH /a/b/c/d/<gtk_version>/lib fixed this problem.
setenv LD_LIBRARY_PATH /a/b/c/d/<gtk_version>/lib