MinGW: Fix compilation error

See haiwen/ccnet#11

The same problem occurs here.