gcc47: fixing the arm eabi hf build

Picking an upstream gcc patch.