fix compiler settings for supporting arm64