win32 compilation fix