armstatic: add patches with various gcc toolchain build fixes