build: various changes required to get ARM build at least started again.

The build does not complete successfully. However, the cross-compiler itself now builds for the arm-pedigree target.