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