port from old changes
fix build under ming-w64
suppress compiler warning