ARM: update cflags and optimize for cortex-a8
fix some more compiler warnings