bugfix: warning fixes when using the Microsoft Visual C++ compiler. thanks Edwin Cleton for the report.