[win] Use g_fopen instead of fopen.