egg: Fix libgcrypt integration for older libgcrypt

There was a missing pthread.h header
configrue: Bump GTK dependency to 3.10
ui: Fix build for GTK+ 3.10