glib2 windows: fix MinGW build Ruby detection