Apply patch for wingw compilation.

This patch is from :
http://sourceforge.net/p/cmph/patches/_discuss/thread/4cb68dae/6b01/attachment/patch-mingw-cmph-1.1
It was designed for cmph 1.1