Win32 buildfix by @shenweip