[win32] fix build with MinGW

follow 9318cba347635120cf08004b1f457cc3