Only install 'Press any key to close..' hook on Windows if we're not invoked via BSP monitoring. Fix getchar() by calling freopen CONIN on stdin.