Add support for glib prior 2.31

Gtk2 binaries from http://www.gtk.org/download/win32.php contain glib 2.28. Since most windows users get binaries from there, it would be good idea to keep supporting them.