Build: avoid win32-incompatible functions