Condition calling gdk_x11 API with build and runtime checks