Resolves build errors for arm64, armv7, armv7s