remove unused variable in Windows code

Just removed one variable and multiple warnings.