Automark: Fix code to support old GTK