ARM: fix several warnings