Win32 fixes, switch to glib file utils