more warning fixes for the Microsoft Visual C++ compiler. thanks Edwin Cleton for the report.