Fix errors in the windows console backend.