Make GDK dependency option for glib bindings

Fixes bug #13719.
13 files changed