fix linker errors on WIN32
Merge pull request #8190 from Dhilan007/v3-win32

fix linker errors on WIN32