Fix imports for GTK 3.6-3.10 builds.