Latest fixes for ARM

With these changes everything built on the cubietruck.