Fix latest 1.4.2 build for win32 (MinGW)

As the latest build treats warnings as errors, the win32 port cannot be built successfully. Here is the patch to make it work again.