fixed compiler warnings when DDEBUG is enabled. we also fixed another Visual C++ compiler warning. thanks Edwin Cleton for the report.