freopens are wrapped with #ifdef _DEBUG