win32: repair for VS Studio build

Thanks to Gustavo Massaccesi

Closes PR 14555