Fix bug preventing KeyboardInterrupts on Windows due to Fortran code.