ARM: remove some unnecessary ifdefs, fix implicit declaration warnings