Fix build on non-win32