Losses widen to £4.9m as building safety work costs mount