Fix GCC compile error: unused result of freopen().