Add backported patch for gcc bug 52015 to all gcc 4.6.x and 4.7.x