Build: avoid win32-incompatible functions
Merge pull request #2019 from GBillotey/SDK_build

Build: avoid win32-incompatible functions