Fixed an fopen problem on Windows Vista.