fixed more warnings from the Microsoft C compiler. thanks Edwin Cleton for the report.