[upstream] Remove unneeded confiugure switches from gcc.