fix build in mingw32.

Signed-off-by: Jack <jack.wgm@gmail.com>