fix fopen on windows