arch/arm/boot/compressed: build fixes and rewrite improper code