fixing precommit_windows Build #5593 compiler errors and warnings