patches: fix legacy-audio compile and flashing updates