Fixes to compile with arm64.