Fix build for arm64, x86_64
Fix warnings
Update to 1.0.5