fix windows compile error
Merge pull request #7533 from dabingnn/v3_windowsDllCompileError

fix windows compile error