c3e7726b8f
- Fixed potential issue where cross-compiled binaries could overwrite platform-specific native builds with incorrect architecture binaries. - Improved native binary installation to use atomic rename operations and better fallback handling for Windows DLLs. - Reordered native binary search candidates to prioritize platform-tagged builds and avoid loading stale cross-compiled binaries. - Enhanced cross-compilation detection to prevent installing wrong-platform fallback binaries during cross-compilation builds. - Refactored binary installation logic with improved error handling and cleanup of stale temporary files.