Backport patch for fixing dwarf to gcc-4.6.4