[win] Fix bugs of ignore file.
[win] Use g_fopen instead of fopen.