glib2 windows: extract build task body