started getting stuff to compile for ARM

There were lots of places where the ARM compiler is pickier about
alignment and the externals stuff had to be reworked to use the cross
compiler for everything.

The main issues left are the lack of opencv and the x86 asm.
9 files changed